<?php
	$css_list[0]['url'][] = './tpl/css/album.css';
	$js_list[0] = './tpl/js/album.js';
?>
<!--{template inc/header}-->
<div class="piece1 fm960">
  <div class="piece1_hd"></div>
  <div class="album_index_best piece1_bd">
      <ul>
          <!--{eval $index = 0;}-->
		  <!--{loop $best_album $album}-->
		  <!--{if $index > 3}-->
		  <!--{eval break;}-->
		  <!--{/if}-->
          <li>
              <a class="abl_title" href="{$album['url']}">{$album['title']}</a>
              <a class="abl_big" target="_blank" href="{$album['url']}"><img src="{getimg $album['img']['img'] 468 468}"/></a>
              <!--{eval $index++;}-->
          </li>
          <!--{/loop}-->
          <li class="right">
            <a href="{u album/create}" class="made_album_btn">创建新杂志社</a>
            <p>
          收录我喜欢的！<br/>
          用专一的态度，把它们记录下来。
             </p>
          </li>
      </ul>
  </div>
  <div class="piece1_ft"></div>
</div>
<div class="blank20"></div>
<div class="wrapper"> 
<!--2012-11-17@miligu.com(米粒谷)添加修改-->
<script type="text/javascript">
        jQuery(function(){
        $(window).scroll(function(){
            if($(window).scrollTop() < 495){
               $('#album_category_nav').removeClass('album_category_nav_fixed').fadeIn('3000');

            }else{
               $('#album_category_nav').addClass('album_category_nav_fixed').fadeIn('3000'); 
            }
            
        });
        });
		
</script>
    <ul id="album_category_nav" class="album_category_nav r5" >
      <li><a href="{u album/index}">全部</a></li>
      <!--{loop $_FANWE['cache']['albums']['category'] $category}-->
      <li><a href="{$category['url']}"{if $category['id'] == $album_cate['id']} class="c"{/if}>{$category['name']}</a></li>
      <!--{/loop}-->
	</ul>  
	<div class="album_sort">
        <h2 class="fl"><a href="{$album_cate['url']}" title="{$album_cate['name']}">{$album_cate['name']}</a></h2>
		<span class="fl sort_span mt10 ml10">排序：</span>
        <ul class="fl mt10">
          <li class="bs_l fl">
          <a{if $sort == 'new'} class="c"{/if} href="{u album sort=new}">
          <i></i>
          <span>最新</span>
          </a>
          </li>
          
          <li class="bs_r fl">
          <a{if $sort == 'hot'} class="c"{/if} href="{u album sort=hot}">
          <span>最热</span>
          <i></i>
          </a>
          </li>
        </ul>
	</div>
    <!--2012-11-17@miligu.com(米粒谷)添加修改结束-->
</div>
<div class="clear"></div>
<div class="wrapper album_book_list">
	<ul>
		<!--{loop $album_list $album}-->
		<li>
          <div class="album_item_bd">
			<a class="abl_big" target="_blank" href="{$album['url']}"><img scaleSrc="{getimg $album['img']['img'] 468 468}" scaleType="3" scaleWidth="225" scaleHeight="225" src="./tpl/images/lazyload.gif" class="LOAD_SCALE_IMG"/></a>
			<div class="abl_smalls">
				<!--{eval $list_img_counts = array(0,0,0,0);}-->
				<!--{loop $album['imgs'] $img}-->
				<!--{if count($list_img_counts) == 0}-->
				<!--{eval break;}-->
				<!--{/if}-->
				<!--{if $img['img'] != $album['img']['img']}-->
				<a target="_blank" href="{$album['url']}"><img scaleSrc="{getimg $img['img'] 100 100}" scaleType="3" scaleWidth="55" scaleHeight="55" class="LOAD_SCALE_IMG" /></a>
				<!--{eval array_pop($list_img_counts);}-->
				<!--{/if}-->
				<!--{/loop}-->
				<!--{loop $list_img_counts $imgindex}-->
				<a target="_blank" class="add_img" href="{$album['url']}"><img src="./tpl/images/none_pic.png" /></a>
				<!--{/loop}-->
			</div>
            <div class="abl_info">
              <a class="abl_mask" href="{$album['url']}">{$album['title']}</a>
              <a class="abl_title" href="{$album['url']}">{$album['title']}</a>
              <span class="abl_count" href="{$album['url']}">{$album['img_count']}张</span>
              <div class="abl_user">
                  <!--{getuser $album['uid'] 0 's,20' 'abl_uimg,lazyload'}-->
                  <!--{getuser $album['uid'] 0 '' 'abl_uname'}-->
              </div>
              <!--{eval $index++;}-->
            </div>
            <div class="album_item_ft fl"></div>
           </div>
		</li>
		<!--{/loop}-->
	</ul>
</div>
<!--{if $pager['page_count'] > 1}-->
<div class="wrapper">
	<div class="pagination mt30"> 
		<!--{subtemplate inc/pages}--> 
	</div>
</div>
<!--{/if}-->
<script type="text/javascript">
FANWE.NO_COUNTER = true;
</script>
<!--{template inc/footer}-->
